import axios from 'axios';
import {adminApiPath} from "./adminApiPath";

const baseUrl = adminApiPath.admin.dashboard;

export const getDashboardArticleStatisticsInfo = async () => {
    const res = await axios.post(baseUrl.statistics);
    return res.data;
};

export const getDashboardPublishArticleStatisticsInfo = async () => {
    const res = await axios.post(baseUrl.publishArticle);
    return res.data;
};

export const getDashboardPVStatisticsInfo = async () => {
    const res = await axios.post(baseUrl.pv);
    return res.data;
};
